import { notification } from "ant-design-vue";
import { ElNotification } from "element-plus";

type NotificationType = "success" | "info" | "warning" | "error";
type position = "top-right" | "top-left" | "bottom-right" | "bottom-left";
/*封装notification组件*/
export const useAntNotification = (type: NotificationType, message: string, description: string, icon?: any) => {
  notification[type]({
    message,
    description,
    icon: icon ? h(icon) : undefined
  });
};

